<?php /* Smarty version 2.6.25, created on 2012-05-14 02:38:24
         compiled from pages/4/templates/4.tpl */ ?>
<!DOCTYPE html>
<html>
<head>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['Const']['Include_meta_head'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['Const']['Include_css'], 'smarty_include_vars' => array('css' => $this->_tpl_vars['Inf']['css_paths'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['Const']['Include_js'], 'smarty_include_vars' => array('js' => $this->_tpl_vars['Inf']['js_paths'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<title><?php echo $this->_tpl_vars['Data']['title']; ?>
</title>
</head>

<body>
<?php if (isset ( $this->_tpl_vars['Inf']['IO']['SESSION']['online'] ) && $this->_tpl_vars['Inf']['IO']['SESSION']['online'] == 1): ?>
	<div>Вы в игре под логином: <?php echo $this->_tpl_vars['Inf']['IO']['SESSION']['login']; ?>
</div>	
	
	<?php if (isset ( $this->_tpl_vars['Data']['list_games'] )): ?>
		<div style="color: black; width: 60px; float: left;">gamers</div>
		<div style="color: black; width: 100%">time</div>

		<?php $_from = $this->_tpl_vars['Data']['list_games']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<a href="/Driver/page/5/id=<?php echo $this->_tpl_vars['i']['id']; ?>
">
					<div style="background: #fc0; width: 250px;">
						<div style="<?php if ($this->_tpl_vars['i']['owner'] == $this->_tpl_vars['Inf']['IO']['SESSION']['id_gamers']): ?>background: gray;color: #aaa;<?php else: ?>background: #0c0;color: green;<?php endif; ?>">
							<div style=" width: 60px; float: left;"><?php echo $this->_tpl_vars['i']['login']; ?>
</div>
							<div style=" width: 100%"><?php echo $this->_tpl_vars['i']['time']; ?>
</div>
						</div>
					</div>
				</a>
		<?php endforeach; endif; unset($_from); ?>
	<?php endif; ?>
	
	<form method=post>
		<input type="hidden" name = "addGame" value="addGame">
		<input type="submit" value="Создать еще игру">
	</form>

<?php else: ?>
	<div>Вы не в игре!</div>	
<?php endif; ?>	
</body>
</html>

